package com.ddpt.permission.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.Set;

@Getter
@Setter
@Component
@RefreshScope
@ConfigurationProperties(prefix = "custom")
public class PermissionConfiguration {

    /**
     * 是否开启登陆短信验证码，不开启默认1234
     */
    private boolean enablePhoneCode;

    /**
     * 被限制登录时提示的文案
     */
    private String limitMsg;

    /**
     * 限制登录的用户,依照唯一标识
     */
    private Set<String> limitLoginUnique;
}
